
************************************************************************************************* */
* Set up 
************************************************************************************************* */
set more off 

global Gpath " " /*include your path here*/
qui do "${Gpath}\\setup\macros.do"

************************************************************************************************* 
* Program installation
************************************************************************************************* 

* Install ftools (remove program if it existed previously)
cap ado uninstall ftools
net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/")

* Install reghdfe
cap ado uninstall reghdfe
net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/")

* Install ivreg2, the core package
cap ado uninstall ivreg2
ssc install ivreg2

* Finally, install this package
cap ado uninstall ivreghdfe
net install ivreghdfe, from(https://raw.githubusercontent.com/sergiocorreia/ivreghdfe/master/src/)

************************************************************************************************* 
* Run Routines 
************************************************************************************************* 

do "${Gpath}\analysis\\reforms and residency.do"
do "${Gpath}\analysis\\figures - Mortality Across Subgroups.do"
do "${Gpath}\analysis\\PCI propensity.do"
do "${Gpath}\analysis\\model-other procedures.do"
do "${Gpath}\analysis\\model.do"
do "${Gpath}\analysis\\counterfactual-policy.do"

